#ifndef AObject_H
#define AObject_H
#include <iostream>
#include <QtCore/QCoreApplication>
#include <QtCore/QObject>
#include <QtCore/QThread>
#include <QtCore/QDebug>

class AObject:public QObject
{
    Q_OBJECT
public:
    AObject()
    {
        snd = "Aobj sig";
    }
public slots:
    void slot(const QString &s)
    {
        qDebug() << "AObject slot from thread:" << QThread::currentThreadId() << s;
        emit sig(snd);
    }
signals:
    void sig(const QString &s);

private:
    QString snd;
};

#endif
